<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/4
 * Time: 15:45
 */
include "../conn.php";
//include "t-cookie.php";


//$Year=$_SESSION["t-Year"];
//$TeacherId=$_SESSION["t-id"];
$sore1 = $_GET['sore1'];
$sore2 = $_GET['sore2'];
$sore3 = $_GET['sore3'];
$sore4 = $_GET['sore4'];
$sore5 = $_GET['sore5'];
$sore6 = $_GET['sore6'];
$sore7 = $_GET['sore7'];
$sore8 = $_GET['sore8'];
$sore9 = $_GET['sore9'];
$sore10 = $_GET['sore10'];
$sore11 = $_GET['sore11'];
$remark = $_GET['remark'];
$ProjectId = $_GET['ProjectId'];
$marktype = $_GET['marktype'];


//修改指导评分表数据
if ($marktype == 'guidemark') {

    $sql = "update guidemark set Order1='$sore1',Order2='$sore2',Order3='$sore3',Order4='$sore4',Order5='$sore5',remark='$remark'  where Project_ProjectId='$ProjectId'";
    if (mysqli_query($conn, $sql)) {
        echo "修改成功";
    } else echo "修改失败";

}


//修改论文评分表数据
if ($marktype == "thesismark") {

    $sql = "update thesismark set Order6='$sore6',Order7='$sore7',remark='$remark' where ThesisMarkId='$ProjectId'";
    if (mysqli_query($conn, $sql)) {
        echo "修改成功";
    } else echo "修改失败";
}


//修改答辩评分表数据
if ($marktype == "replymark") {
    $sql = "update replymark set Order8='$sore8',Order9='$sore9',Order10='$sore10',Order11='$sore8',remark='$remark' where ReplyMarkId='$ProjectId'";
    if (mysqli_query($conn, $sql)) {
        echo "修改成功";
    } else echo "修改失败";
}